package com.ljp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ljp.dao.UserDao;
import com.ljp.dao.model.User;
import com.ljp.service.UserService;

/**
 * 用户信息
 * @author Administrator
 *
 */
@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserDao userDao;
	
	public User getUserIfo(Integer id) {
		
		System.out.println("service ... 根据用户id查询用户信息....");
		
		return userDao.getUserInfoById(id);
	}

	public List<User> findAllUserInfo() {
		
		System.out.println("查询所有用户信息......");
		
		return userDao.findAllUserInfo();
	}

}
